package com.lyfei.yd.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Positive;

@Data
public class CategoryDto {
    @NotBlank
    private String name;

    private String description;

    private Boolean isRoot;

    private Long parentId;

    private String img;

    @Positive
    private Integer index;

    private Boolean online;

}
